package com.gxa.entity.investment;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 新增计划
 * </p>
 *
 * @author yjl
 * @since 2022-10-20 09:51:06
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("t_plan")
@ApiModel(value = "Plan对象", description = "新增计划")
public class Plan implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "新增计划主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "计划类型")
    @TableField("plan_type")
    private String planType;

    @ApiModelProperty(value = "数量")
    @TableField("amount")
    private Integer amount;

    @ApiModelProperty(value = "开始日期")
    @TableField("start_date")
    private Date startDate;

    @ApiModelProperty(value = "结束日期")
    @TableField("end_date")
    private Date endDate;

    @ApiModelProperty(value = "执行部门")
    @TableField("excutive")
    private String excutive;

    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;

    @ApiModelProperty(value = "逻辑删除")
    @TableField("is_delete")
    @TableLogic
    private Integer isDelete;

    @ApiModelProperty(value = "关联的父计划（外键")
    @TableField("plan_name")
    private String planName;


}
